import numpy as np
train_data = np.array([
    [3,3],
    [4,3],
    [1,1]
])

train_label = np.array([1, 1, -1])

learning_rate = 1

w0 = np.array([6, 7])
b0 = 2

total_right = 0

while total_right != 3:
    total_right = 0
    for i in range(len(train_data)):
        fx = np.dot(w0,train_data[i]) + b0
        if fx * train_label[i] <= 0:
            w0 = w0 + train_label[i]*train_data[i]
            b0 = b0 + train_label[i]
        else:
            total_right += 1
print(w0)
print(b0)